@extends('layout.master')
@section('title', '后台管理系统')
@section('content')
<body>
<div id="dialog" class="easyui-window" data-options="iconCls:'icon-save',minimizable:false,closed:true">
    <form id="updateform">
        <table style="width: 100%;" id="table">
            <tr>
                <td style="width: 20%;text-align: center">用户账号：</td>
                <td style="width: 80%;">
                    <input class="easyui-textbox" id="account" name="account" data-options="disabled:true" style="width:100%;height:32px">
                </td>
            </tr>
            <tr>
                <td style="width: 20%;text-align: center">用户名称：</td>
                <td style="width: 80%;"><input class="easyui-textbox" id="username" name="username" data-options="disabled:true" style="width:100%;height:32px"></td>
            </tr>
            <tr>
                <td style="width: 20%;text-align: center">注册时间：</td>
                <td style="width: 80%;"><input class="easyui-textbox" id="regtime" name="regtime" data-options="disabled:true" style="width:100%;height:32px"></td>
            </tr>
            <tr>
                <td style="width: 20%;text-align: center">用户手机：</td>
                <td style="width: 80%;"><input class="easyui-textbox" id="phone" name="phone" data-options="disabled:true" style="width:100%;height:32px"></td>
            </tr>
            <tr>
                <td style="width:20%;text-align: center" class="center">用户状态：</td>
                <td style="width:80%">
                    <select class="easyui-combobox" name="status" style="width:100%;">
                        <option value="">请选择</option>
                        <option value="1">正常</option>
                        <option value="2">锁定</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td style="width:20%;text-align: center" class="center">是否vip：</td>
                <td style="width:80%">
                    <select class="easyui-combobox" name="isvip" style="width:100%;">
                        <option value="">请选择</option>
                        <option value="1">是</option>
                        <option value="2">否</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td style="width: 20%;text-align: center">vip开始时间：</td>
                <td style="width: 80%;">
                    <input class="easyui-datebox" name="vipstart" style="width:100%;height:32px" prompt="请选择开始时间" data-options="formatter:$.formatDate,parser:$.myParse">
                </td>
            </tr>
            <tr>
                <td style="width: 20%;text-align: center">vip结束时间：</td>
                <td style="width: 80%;">
                    <input class="easyui-datebox" name="vipend" style="width:100%;height:32px" prompt="请选择开始时间" data-options="formatter:$.formatDate,parser:$.myParse">
                </td>
            </tr>
            <tr>
                <td style="width: 20%;text-align: center">充值金额：</td>
                <td style="width: 80%;">
                    <input class="easyui-textbox" id="money" name="money" style="width:100%;height:32px">
                </td>
            </tr>
            <tr>
                <td style="width: 20%;text-align: center">账户金币：</td>
                <td style="width: 80%;">
                    <input class="easyui-textbox" id="gold" name="gold" style="width:100%;height:32px">
                </td>
            </tr>
            <tr>
                <td colspan="2" style="text-align: center"><a href="#" class="easyui-linkbutton" iconCls="icon-save" onclick="$api.updateuserinfo()">确定</a></td>
            </tr>
        </table>
    </form>
</div>
<div class="easyui-layout" data-options="fit:true">
    <div data-options="iconCls:'icon-save',collapsible:true,region:'north'" style="height: 125px;" title="搜索条件">
        <form action="" id="form">
            <table style="width:100%">
                <tr>
                    <td style="width:6%" class="center">用户名称：</td>
                    <td style="width:19%"><input class="easyui-textbox" name=""
                                                 style="width:100%;height:32px" prompt="请输入用户名称"></td>
                    <td style="width:6%;">是否vip：</td>
                    <td style="width:19%">
                        <select class="easyui-combobox" name="sfvip" style="width:100%;">
                            <option value="">请选择</option>
                            <option value="1">是</option>
                            <option value="2">否</option>
                        </select>
                    </td>
                    <td style="width:6%" class="center">vip时间：</td>
                    <td style="width:19%">
                        <input class="easyui-datebox" name="vipstart"
                               style="width:48%;height:32px" prompt="请选择开始时间"
                               data-options="formatter:$.formatDate,parser:$.myParse">
                        <input class="easyui-datebox" name="vipend"
                               style="width:48%;height:32px;float: left;" prompt="请选择结束时间"
                               data-options="formatter:$.formatDate,parser:$.myParse">
                    </td>
                    <td style="width:6%" class="center">人员状态：</td>
                    <td style="width:19%">
                        <select class="easyui-combobox" name="yxbz" style="width:100%;">
                            <option value="">请选择</option>
                            <option value="1">正常</option>
                            <option value="0">禁用</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td style="width:6%" class="center">手机号码：</td>
                    <td style="width:19%"><input class="easyui-textbox" name=""
                                                 style="width:100%;height:32px" prompt="请输入手机号码"></td>
                    <td style="width:6%" class="center">账号金币：</td>
                    <td style="width:19%"><input class="easyui-textbox" name=""
                                                 style="width:100%;height:32px" prompt="请输入账号金币"></td>
                    <td style="width:6%" class="center">充值金额：</td>
                    <td style="width:19%"><input class="easyui-textbox" name=""
                                                 style="width:100%;height:32px" prompt="请输入充值金额"></td>
                    <td style="width:6%" class="center">用户账号：</td>
                    <td style="width:19%"><input class="easyui-textbox" name=""
                                                 style="width:100%;height:32px" prompt="请输入用户账号"></td>
                </tr>
            </table>
            <div class="toolbar">
                <a href="#" class="easyui-linkbutton" onclick="$api.clearFrom()" iconCls="icon-empty">清空</a>
                <a href="#" class="easyui-linkbutton" onclick="$api.doSearch();" iconCls="icon-search">查询</a>
                <a href="#" class="easyui-linkbutton" onclick="$api.edituserinfo()" iconCls="icon-edit">编辑</a>
            </div>
        </form>
    </div>
    <div data-options="iconCls:'icon-save',collapsible:true,region:'center'" style="height: 100%;" title="搜索结果">
        <table  style="height: 100%;width: 100%" id="dg">
            <thead>
            <tr>
                <th data-options="field:'ck',checkbox:true"></th>
                <th data-options="field:'username',width:150,align: 'center', title: '用户名'"></th>
                <th data-options="field:'regtime',width:150,align: 'center', title: '注册时间'"></th>
                <th data-options="field:'phone',width:150,align: 'center', title: '用户手机'"></th>
                <th data-options="field:'pwd',width:150,align: 'center', title: '用户密码'"></th>
                <th data-options="field:'isvip',width:100,align: 'center', title: '是否vip'"></th>
                <th data-options="field:'vipstart',width:180,align: 'center', title: 'vip开始时间'"></th>
                <th data-options="field:'vipend',width:180,align: 'center', title: 'vip结束时间'"></th>
                <th data-options="field:'money',width:120,align: 'center', title: '充值金额'"></th>
                <th data-options="field:'gold',width:120,align: 'center', title: '账户金币'"></th>
                <th data-options="field:'account',width:120,align: 'center', title: '用户账号'"></th>
                <th data-options="field:'status',width:120,align: 'center', title: '账号状态'"></th>

            </tr>
            </thead>
        </table>
    </div>
</div>
<script>
    $api.myDataGird({url: $api.url +'memberslist', obj: '#dg',plainBtn:true});
</script>
@endsection
                                          
